<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title> 
</head>
<body>
<script type="text/javascript">
	
/*
function fff(){
	alert(1);
};
window.onclick = fff();
*/

function a(){
	this.kkk =100;
	//this.c();
	//this.c();
	//this.m = 20;
	//var _this = this;
	//this.f = _this.c;
	//alert(this.f);
	//this.f();
};
function b(){
	this.mmm =10;
	alert(this.kkk);
	//alert(1)
	//a.call(this);
	//this.f();
};

a.prototype={
	'a':function(){
		alert(1);
	},
	'b':function(){
		alert(2);
	},
	'c':function(){
		alert(3);
	}
};

b.prototype = new a();

//b.prototype.kkk = 10;
//b.prototype.a = a.prototype.a
//...
new b();

</script>
</body>
</html>